{% load static %}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>控制台</title>
</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/">云想云工控</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-left">
            <li><a href="/">首页</a></li>
            <li><a href="#">云产品</a></li>
            <li><a href="#">文档与支持</a></li>
            <li><a href="#">加入我们</a></li>
          </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">欢迎,{{ user_name }}</a></li>
                <li><a href="#"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span></a></li>
          </ul>
        </div>
      </div>
    </nav>

     <div class="container-fluid">
      <div class="row">
        {% if function == "query" %}
             {% if request.method == "GET" %}
                {% include "date_data_search.html" %}
             {% else %}
                 {% include "date_data_result.html" %}
             {% endif %}
        {% elif function == "history_state" %}
            {% include "history_state.html" %}
        {% elif function == "cmd" %}
            {% include "date_control.html" %}
        {% elif function == "analysis" %}
            {% include "data_analysis.html" %}
        {% elif function == "diagnose" %}
            {% include "error_diagose.html" %}
        {% else %}
            {% include "date_data_search.html" %}
        {% endif %}

      </div>
    </div>

    <!-- 百度CDN -->
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>

    <!-- 控制台本地JS脚本 -->
    <script src="{% static "js/console.js" %}"> </script>

    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

    <link href="{% static "css/communicator_console.css" %}" rel="stylesheet">

</body>
</html>